﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using GameBase;

namespace GalaxyPresident
{
    public class Forest : CommonEntity
    {
        private static Texture2D texture1 = Constant.content.Load<Texture2D>(@"Resources/woods1");
        private static Texture2D texture2 = Constant.content.Load<Texture2D>(@"Resources/woods2");
        private static Texture2D texture3 = Constant.content.Load<Texture2D>(@"Resources/woods3");
        private static Texture2D texture_s = Constant.content.Load<Texture2D>(@"Resources/woods1");


        public Forest(Planet planet)
            : base(planet)
        {
            sprite_s = new Sprite(texture1, 1, 1,
                new List<int> { 0 }, 150);
            sprite = new Sprite(texture1, 1, 1,
                new List<int> { 0 }, 150);

            textures.Add(texture1);
            textures.Add(texture2);
            textures.Add(texture3);

            initSprites(planet);
        }

        public override string getObjectName()
        {
            return "Forest";
        }

        public override string getInfoString()
        {
            string envirStr = "\nEnviroment: " + ((int)((LivableBlock)_planetOwner.Blocks[BlockIndex]).Population).ToString();
            return base.getInfoString()
                + envirStr;
        }
    }
}
